package com.bdqn.qnnews.wemedia.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author xlZhang
 * @description 自媒体图文引用素材信息表
 */
@Data
@Accessors(chain = true)
@TableName("wm_news_material")
@Schema(name = "WmNewsMaterial 对象", description = "自媒体图文引用素材信息表 实体类")
public class WmNewsMaterial implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "素材ID")
    private Long materialId;

    @Schema(description = "图文ID")
    private Long newsId;

    @Schema(description = "引用类型	0 内容引用	1 主图引用")
    private Byte type;

    @Schema(description = "引用排序")
    private Byte ord;
}